package com.youmu.sichuansfc.domain;

import javax.persistence.*;
import java.sql.Date;
import java.sql.Date;
import java.sql.Timestamp;
import java.util.Objects;

@Entity
@Table(name = "youmu_company", schema = "youmu", catalog = "")
public class YoumuCompany {
    private Long id;
    private Timestamp addTime;
    private String companyName;
    private Integer companyType;
    private Integer companyStatus;
    private Double behaviorScore;
    private Double sincerityScore;
    private Double lawScore;
    private Double taxScore;
    private Double complianceScore;
    private String riskDetail;
    private String riskCue;
    private String riskSuggest;
    private String riskProblemCode;
    private Double riskRank;
    private String cooperativeAgr;
    private String capitalVerificationReportAgr;
    private String taxAgr;
    private String investmentAgr;
    private String otherMaterialAgr;
    private String quarterlyReportAgr;
    private String accessoryAgr;
    private String region;
    private Long areaId;
    private String detail;
    private Boolean isDelete;

    public void setId(long id) {
        this.id = id;
    }

    public void setCompanyStatus(int companyStatus) {
        this.companyStatus = companyStatus;
    }

    @Id
    @Column(name = "id")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "add_time")
    public Timestamp getAddTime() {
        return addTime;
    }

    public void setAddTime(Timestamp addTime) {
        this.addTime = addTime;
    }

    @Basic
    @Column(name = "company_name")
    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    @Basic
    @Column(name = "company_type")
    public Integer getCompanyType() {
        return companyType;
    }

    public void setCompanyType(Integer companyType) {
        this.companyType = companyType;
    }

    @Basic
    @Column(name = "company_status")
    public Integer getCompanyStatus() {
        return companyStatus;
    }

    public void setCompanyStatus(Integer companyStatus) {
        this.companyStatus = companyStatus;
    }

    @Basic
    @Column(name = "behavior_score")
    public Double getBehaviorScore() {
        return behaviorScore;
    }

    public void setBehaviorScore(Double behaviorScore) {
        this.behaviorScore = behaviorScore;
    }

    @Basic
    @Column(name = "sincerity_score")
    public Double getSincerityScore() {
        return sincerityScore;
    }

    public void setSincerityScore(Double sincerityScore) {
        this.sincerityScore = sincerityScore;
    }

    @Basic
    @Column(name = "law_score")
    public Double getLawScore() {
        return lawScore;
    }

    public void setLawScore(Double lawScore) {
        this.lawScore = lawScore;
    }

    @Basic
    @Column(name = "tax_score")
    public Double getTaxScore() {
        return taxScore;
    }

    public void setTaxScore(Double taxScore) {
        this.taxScore = taxScore;
    }

    @Basic
    @Column(name = "compliance_score")
    public Double getComplianceScore() {
        return complianceScore;
    }

    public void setComplianceScore(Double complianceScore) {
        this.complianceScore = complianceScore;
    }

    @Basic
    @Column(name = "risk_detail")
    public String getRiskDetail() {
        return riskDetail;
    }

    public void setRiskDetail(String riskDetail) {
        this.riskDetail = riskDetail;
    }

    @Basic
    @Column(name = "risk_cue")
    public String getRiskCue() {
        return riskCue;
    }

    public void setRiskCue(String riskCue) {
        this.riskCue = riskCue;
    }

    @Basic
    @Column(name = "risk_suggest")
    public String getRiskSuggest() {
        return riskSuggest;
    }

    public void setRiskSuggest(String riskSuggest) {
        this.riskSuggest = riskSuggest;
    }

    @Basic
    @Column(name = "risk_problem_code")
    public String getRiskProblemCode() {
        return riskProblemCode;
    }

    public void setRiskProblemCode(String riskProblemCode) {
        this.riskProblemCode = riskProblemCode;
    }

    @Basic
    @Column(name = "risk_rank")
    public Double getRiskRank() {
        return riskRank;
    }

    public void setRiskRank(Double riskRank) {
        this.riskRank = riskRank;
    }

    @Basic
    @Column(name = "cooperative_agr")
    public String getCooperativeAgr() {
        return cooperativeAgr;
    }

    public void setCooperativeAgr(String cooperativeAgr) {
        this.cooperativeAgr = cooperativeAgr;
    }

    @Basic
    @Column(name = "capital_verification_report_agr")
    public String getCapitalVerificationReportAgr() {
        return capitalVerificationReportAgr;
    }

    public void setCapitalVerificationReportAgr(String capitalVerificationReportAgr) {
        this.capitalVerificationReportAgr = capitalVerificationReportAgr;
    }

    @Basic
    @Column(name = "tax_agr")
    public String getTaxAgr() {
        return taxAgr;
    }

    public void setTaxAgr(String taxAgr) {
        this.taxAgr = taxAgr;
    }

    @Basic
    @Column(name = "investment_agr")
    public String getInvestmentAgr() {
        return investmentAgr;
    }

    public void setInvestmentAgr(String investmentAgr) {
        this.investmentAgr = investmentAgr;
    }

    @Basic
    @Column(name = "other_material_agr")
    public String getOtherMaterialAgr() {
        return otherMaterialAgr;
    }

    public void setOtherMaterialAgr(String otherMaterialAgr) {
        this.otherMaterialAgr = otherMaterialAgr;
    }

    @Basic
    @Column(name = "quarterly_report_agr")
    public String getQuarterlyReportAgr() {
        return quarterlyReportAgr;
    }

    public void setQuarterlyReportAgr(String quarterlyReportAgr) {
        this.quarterlyReportAgr = quarterlyReportAgr;
    }

    @Basic
    @Column(name = "accessory_agr")
    public String getAccessoryAgr() {
        return accessoryAgr;
    }

    public void setAccessoryAgr(String accessoryAgr) {
        this.accessoryAgr = accessoryAgr;
    }

    @Basic
    @Column(name = "region")
    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    @Basic
    @Column(name = "area_id")
    public Long getAreaId() {
        return areaId;
    }

    public void setAreaId(Long areaId) {
        this.areaId = areaId;
    }

    @Basic
    @Column(name = "detail")
    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }



    @Basic
    @Column(name = "is_delete")
    public Boolean getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Boolean delete) {
        isDelete = delete;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        YoumuCompany that = (YoumuCompany) o;
        return id == that.id &&
                companyStatus == that.companyStatus &&
                isDelete == that.isDelete &&
                Objects.equals(addTime, that.addTime) &&
                Objects.equals(companyName, that.companyName) &&
                Objects.equals(companyType, that.companyType) &&
                Objects.equals(behaviorScore, that.behaviorScore) &&
                Objects.equals(sincerityScore, that.sincerityScore) &&
                Objects.equals(lawScore, that.lawScore) &&
                Objects.equals(taxScore, that.taxScore) &&
                Objects.equals(complianceScore, that.complianceScore) &&
                Objects.equals(riskDetail, that.riskDetail) &&
                Objects.equals(riskCue, that.riskCue) &&
                Objects.equals(riskSuggest, that.riskSuggest) &&
                Objects.equals(riskProblemCode, that.riskProblemCode) &&
                Objects.equals(riskRank, that.riskRank) &&
                Objects.equals(cooperativeAgr, that.cooperativeAgr) &&
                Objects.equals(capitalVerificationReportAgr, that.capitalVerificationReportAgr) &&
                Objects.equals(taxAgr, that.taxAgr) &&
                Objects.equals(investmentAgr, that.investmentAgr) &&
                Objects.equals(otherMaterialAgr, that.otherMaterialAgr) &&
                Objects.equals(quarterlyReportAgr, that.quarterlyReportAgr) &&
                Objects.equals(accessoryAgr, that.accessoryAgr) &&
                Objects.equals(region, that.region) &&
                Objects.equals(areaId, that.areaId) &&
                Objects.equals(detail, that.detail);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, addTime, companyName, companyType, companyStatus, behaviorScore, sincerityScore, lawScore, taxScore, complianceScore, riskDetail, riskCue, riskSuggest, riskProblemCode, riskRank, cooperativeAgr, capitalVerificationReportAgr, taxAgr, investmentAgr, otherMaterialAgr, quarterlyReportAgr, accessoryAgr, region, areaId, detail, isDelete);
    }
}
